<?php
/* SVN FILE: $Id$ */
/* TcTipoContrato Test cases generated on: 2009-06-18 15:06:24 : 1245357624*/
App::import('Model', 'TcTipoContrato');

class TcTipoContratoTestCase extends CakeTestCase {
	var $TcTipoContrato = null;
	var $fixtures = array('app.tc_tipo_contrato', 'app.tc_contrato');

	function startTest() {
		$this->TcTipoContrato =& ClassRegistry::init('TcTipoContrato');
	}

	function testTcTipoContratoInstance() {
		$this->assertTrue(is_a($this->TcTipoContrato, 'TcTipoContrato'));
	}

	function testTcTipoContratoFind() {
		$this->TcTipoContrato->recursive = -1;
		$results = $this->TcTipoContrato->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('TcTipoContrato' => array(
			'id'  => 1,
			'descripcion'  => 'Lorem ipsum d'
			));
			$this->assertEqual($results, $expected);
	}
}
?>